import request from '@/utils/request'

// 查询自动化设备列表
export function listEquipment(data) {
    return request({
        url: '/sys/AutoEquipment/list',
        method: 'post',
        data: data
    })
}

// 查询自动化设备详细
export function getEquipment(aeId) {
    return request({
        url: '/sys/AutoEquipment/detail/' + aeId,
        method: 'get'
    })
}

// 新增自动化设备
export function addEquipment(data) {
    return request({
        url: '/sys/AutoEquipment/add',
        method: 'post',
        data: data
    })
}

// 修改自动化设备
export function updateEquipment(data) {
    return request({
        url: '/sys/AutoEquipment/edit',
        method: 'post',
        data: data
    })
}

// 删除自动化设备
export function delEquipment(aeId) {
    return request({
        url: '/sys/AutoEquipment/dels/' + aeId,
        method: 'delete'
    })
}
